package com.wangku.springmvc.controller;

import com.alibaba.fastjson.JSONObject;
import com.wangku.springmvc.common.BaseController;
import com.wangku.springmvc.entity.PageData;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: ${description}
 * @Param: ${params}
 * @return: ${returns}
 * @Author: 李赛赛
 * @Date: ${date}
 */
@Controller
public class WebServiceForCSS extends BaseController {
//    @ResponseBody
//    @RequestMapping(value = "getUserById", method = RequestMethod.GET, produces = {"application/json; charset=utf-8","application/xml"})
//    @ApiOperation(value = "通过ID查询USER信息", httpMethod = "GET", notes = "暂无")
//    public String getUserById(
//            @ApiParam(required = true, name = "id", value = "ID")
//            @RequestParam(value = "id") String id, HttpServletRequest request) {
//        PageData user = new PageData();
//        user.put("id",id);
//        user.put("name","测试人员");
//        user.put("Age",25);
//        JSONObject object =new  JSONObject();
//        object.put("data", user);
//        return object.toString();
//    }
}
